const router = require('koa-router')(),
      crawlerController = require('../controllers/Crawler'),
      loginCheck = require('../middleware/loginCheck');

router.prefix('/crawler');//默认前缀
router.get('/craw_slider_data',loginCheck, crawlerController.crawlSliderDate);
router.get('/craw_agency_info',loginCheck, crawlerController.crawlAgencyInfo);
router.get('/craw_recom_course',loginCheck, crawlerController.crawlRecomCourse);
router.get('/craw_collection', loginCheck, crawlerController.crawlCollection);
router.get('/craw_teacher',loginCheck,  crawlerController.crawlTeacher);
router.get('/craw_student', loginCheck, crawlerController.crawlStudent);
router.get('/craw_source_tab',loginCheck, crawlerController.crawlSourceTab);
router.get('/craw_course_data',loginCheck, crawlerController.crawlCourseData);
router.get('/craw_aboutus', loginCheck, crawlerController.crawlAboutsData)

module.exports = router
